﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace ZR.Model.Models.ProductionControl {
    /// <summary>
    /// 报警信息配置
    /// </summary>
    [SugarTable("cks_alarm_message_config")]
    [Table(Name = "cks_alarm_message_config")]
    public class CksAlarmMessageConfig : BaseEntity {
        /// <summary>
        /// 报警记录ID 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        [Column(IsPrimary = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// PlcID 
        /// </summary>
        public int? PlcID { get; set; }

        /// <summary>
        /// 数据块地址，eg：3002（db块） 
        /// </summary>
        public int? BlockAddr { get; set; }

        /// <summary>
        /// 报警地址，eg：2（具体那个word的偏移量） 
        /// </summary>
        public int? AlarmAddr { get; set; }

        /// <summary>
        /// 报警位索引，eg：0~15（word中的16个bit） 
        /// </summary>
        public int? AlarmBitIndex { get; set; }

        /// <summary>
        /// 报警级别 1：一般 2：警告 3：严重，这个字段数据过滤筛选 
        /// </summary>
        public int? Level { get; set; }

        /// <summary>
        /// 中文语报警信息 
        /// </summary>
        public string MessageCn { get; set; }

        /// <summary>
        /// 西班牙语报警信息 
        /// </summary>
        public string MessageEs { get; set; }

        /// <summary>
        /// 英文语报警信息 
        /// </summary>
        public string MessageUs { get; set; }

        /// <summary>
        /// 创建时间 
        /// </summary>
        public DateTime? CreatDate { get; set; }

    }
}
